package cn.com.zero.manager.auth.po;

import cn.com.zero.base.po.BasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Objects;

/**
 * @author guoxin
 * @version 1.0.0
 * @Description 菜单表
 * @date 2023/2/13 15:02
 */
@ApiModel(value = "MenuPO",description = "菜单表")
public class MenuPO extends BasePO {

    @ApiModelProperty(value = "菜单ID")
    private Long menuid;

    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value = "父级菜单")
    private Long parentID;

    @ApiModelProperty(value = "路径")
    private String url;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "菜单类型（1菜单  2功能）")
    private Short type;

    @ApiModelProperty(value = "排序号")
    private Long sort;

    @ApiModelProperty(value = "系统号")
    private Integer systemID;

    public Long getMenuid() {
        return menuid;
    }

    public void setMenuid(Long menuid) {
        this.menuid = menuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getParentID() {
        return parentID;
    }

    public void setParentID(Long parentID) {
        this.parentID = parentID;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Integer getSystemID() {
        return systemID;
    }

    public void setSystemID(Integer systemID) {
        this.systemID = systemID;
    }

    @Override
    public int hashCode() {
        return Objects.hash(menuid);
    }

    @Override
    public boolean equals(Object obj) {
        if(this == obj){
            return true;
        }
        if(obj == null || getClass() != obj.getClass()){
            return false;
        }
        MenuPO menuPO = (MenuPO)obj;
        if(!this.getMenuid().equals(menuPO.getMenuid())){
            return false;
        }
        return true;
    }

}
